<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../../mofumui/mofumui.js" ></script>
	</head>
	<body>
		<script type="text/javascript">
			//设置JS路由
			mofum.setPrefix("../../");
			mofum.imports(["MFrame","MPCard"],function(MFrame,MPCard){
				
				//创建框架
				var frame = new MFrame();
				
				//创建一个宽300，高100，背景为红色的面板。
				var card = new MPCard().setSize(300,400).setBackground("#f00");
				//设置文本
				frame.append(card);
				
				card.setBlur(10);
				
				card.handleHover(function(){
					card.buildShadow();
				},function(){
					card.clearShadow();
				})
				
				frame.setLayerVisible(false);
				
			});
			
		</script>
	</body>
</html>
